function error(title) {
    uni.showToast({
        title: title,
        duration: 2000,
        icon: 'none',
        mask: true
    });
}

function success(title) {
    uni.showToast({
        title: title,
        duration: 2000,
        icon: 'none',
        mask: true
    });
}

export default {
    error, //格式化日期
    success
};
